package com.wsd.jing.service;

import com.wsd.jing.entity.Test;
import com.baomidou.mybatisplus.extension.service.IService;
import com.wsd.jing.request.CommonRequest;

import java.util.List;
import java.util.Map;

/**
 * All rights Reserved, Designed By www.tom.com
 *
 * @author tom
 * @version 1.0.0
 * @projectName: jing
 * @packageName: com.wsd.jing.service
 * @className: ITestService
 * @description: Test服务类
 * @createDate 2024-07-04 03:57
 * @copyright 2024-07-04 03:57 www.tom.com Inc. All rights reserved.
 */
public interface ITestService extends IService<Test> {

    /**
     * @param test:Test
     * @return Boolean
     * @author tom
     * @description 新增Test
     * @createDate 2024-07-04 03:57
     */
    Boolean insertTest(Test test);

    /**
     * @param test:Test
     * @return Boolean
     * @author tom
     * @description 修改Test
     * @createDate 2024-07-04 03:57
     */
    Boolean updateTest(Test test);

    /**
     * @param id:id
     * @return Boolean
     * @author tom
     * @description 删除Test
     * @createDate 2024-07-04 03:57
     */
    Boolean deleteTest(Integer id);

    /**
     * @param ids:id
     * @return Boolean
     * @author tom
     * @description 批量删除Test
     * @createDate 2024-07-04 03:57
     */
    Boolean deleteTests(String ids);

    /**
     * @param id:id
     * @return Test
     * @author tom
     * @description 查询Test
     * @createDate 2024-07-04 03:57
     */
    Test getTest(Integer id);

    /**
     * @param commonRequest:排序参数
     * @param test:Test
     * @return List<Test>
     * @author tom
     * @description 查询Test列表
     * @createDate 2024-07-04 03:57
     */
    List<Test> listTests(CommonRequest commonRequest, Test test);

    /**
     * @param commonRequest:分页参数
     * @param test:Test
     * @return Map<String, Object>
     * @author tom
     * @description 分页查询Test列表
     * @createDate 2024-07-04 03:57
     */
    Map<String, Object> listPageTests(CommonRequest commonRequest, Test test);
}
